<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.fl{
				float: left;
			}
			.clear{
				clear: both;
			}
			.container{
				width: 960px;
				/* 上下是100px，左右居中 */
				margin: 100px auto;
			}
			.nav{
				width: 100%;
				height: 40px;
				background-color: rgb(1,32,79);
			}
			.nav ul{
				/* 去掉小圆点 */
				list-style-type: none;
			}
			.nav ul li{
				width: 120px;
				height: 40px;
				
			}
			.nav ul li a{
				display: block;
				width: 120px;
				height: 40px;
				color: white;
				text-align: center;
				/* line-height是行高，geight，line-height和height值一样，
				文字就会垂直居中 */
				line-height: 40px;
				text-decoration: none;
			}
			.nav ul li a:hover{
				background-color: red;
				font-weight: bold;
			}
		</style>
	</head>
	<body>
		<div class="nav">
			<div class="container">
				<ul>
					<li class="fl"><a href="#">首页</a></li>
					<li class="fl"><a href="#">国内</a></li>
					<li class="fl"><a href="#">国际</a></li>
					<li class="fl"><a href="#">军事</a></li>
					<li class="fl"><a href="#">财经</a></li>
					<li class="fl"><a href="#">娱乐</a></li>
					<li class="fl"><a href="#">体育</a></li>
					<li class="fl"><a href="#">互联网</a></li>
					<div class="clear"></div>
				</ul>
			</div>
		</div>
	</body>
</html>
